package com.zf.gateway.downstream.controller;

import com.zf.common.core.result.RestResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhou Feng
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class ApiTestController {

    @GetMapping("/hello")
    public RestResponse<String> hello() {
        log.info("调用了 /test/hello");
        return RestResponse.success("你好");
    }
}
